﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class Sach_BUS
    {
        public static DataTable Hienthisach()
        {
            return SACH_DAO.Hienthisach();
        }

        public static void InsertSACH(Sach_DTO sach)
        {
            SACH_DAO.InsertSach(sach);
        }

        public static void UpdateSACH(Sach_DTO sach)
        {
            SACH_DAO.UpdateSach(sach);
        }

        public static void DeleteSACH(Sach_DTO sach)
        {
            SACH_DAO.DeleteSach(sach);
        }
    }
    public class CTHDX_BUS
    {
        public static void InsertCTHDX(CTHDX_DTO cthdx)
        {
            CTHDX_DAO.InsertCTHDX(cthdx);
        }

        public static DataTable HienthiCTHDX()
        {
            return CTHDX_DAO.HienthiCTHDX();
        }

        public static void UpdateCTHDX(CTHDX_DTO ctdhx)
        {
            CTHDX_DAO.UpdateCTHDX(ctdhx);
        }

        public static DataTable Hienthi(int stt)
        {
            return CTHDX_DAO.Hienthi(stt);
        }

        public static void DeleteCTHDX(CTHDX_DTO cthdx)
        {
            CTHDX_DAO.DeleteCTHDX(cthdx);
        }
    }
    public class CTHDN_BUS
    {
        public static void InsertCTHDN(CTHDN_DTO cthdn)
        {
            CTHDN_DAO.InsertCTHDN(cthdn);
        }

        public static DataTable HienthiCTHDN()
        {
            return CTHDN_DAO.HienthiCTHDN();
        }

        public static void UpdateCTHDN(CTHDN_DTO ctdhn)
        {
            CTHDN_DAO.UpdateCTHDN(ctdhn);
        }

        public static void DeleteCTHDN(CTHDN_DTO cthdn)
        {
            CTHDN_DAO.DeleteCTHDN(cthdn);
        }

        public static DataTable Hienthi(int stt)
        {
            return CTHDN_DAO.Hienthi(stt);
        }
    }
    public class NV_BUS
    {
        public static void InsertNV(NV_DTO nv)
        {
            NV_DAO.InsertNV(nv);
        }

        public static void UpdateNV(NV_DTO nv)
        {
            NV_DAO.UpdateNV(nv);
        }

        public static void DeleteNV(NV_DTO nv)
        {
            NV_DAO.DeleteNV(nv);
        }

        public static DataTable HienthiNV()
        {
            return NV_DAO.HienthiNV();
        }

        public static DataTable Phanquyen(NV_DTO nv)
        {
            return NV_DAO.Phanquyen(nv);
        }

        public static DataTable Loggin(NV_DTO nv)
        {
            return NV_DAO.Loggin(nv);
        }

        public static DataTable SeachNV(NV_DTO nv)
        {
            return NV_DAO.SeachNV(nv);
        }
    }
    public class TL_BUS
    {
        public static void InsertTL(TL_DTO tl)
        {
            TL_DA0.InsertTL(tl);
        }

        public static void UpdateTL(TL_DTO tl)
        {
            TL_DA0.UpdateTL(tl);
        }

        public static void DeleteTL(TL_DTO tl)
        {
            TL_DA0.DeleteTL(tl);
        }

        public static DataTable HienthiTL()
        {
            return TL_DA0.HienthiTL();
        }
    }
    public class HDN_BUS
    {
        public static void InsertHDN(HDN_DTO hdn)
        {
            HDN_DAO.InsertHDN(hdn);
        }

        public static DataTable HienthiHDN()
        {
            return HDN_DAO.HienthiHDN();
        }

        public static void UpdateHDN(HDN_DTO dhn)
        {
            HDN_DAO.UpdateHDN(dhn);
        }

        public static void DeleteHDN(HDN_DTO hdn)
        {
            HDN_DAO.DeleteHDN(hdn);
        }
    }
    public class HDX_BUS
    {
        public static void InsertHDX(HDX_DTO hdx)
        {
            HDX_DAO.InsertHDX(hdx);
        }

        public static DataTable HienthiHDX()
        {
            return HDX_DAO.HienthiHDX();
        }

        public static void UpdateHDX(HDX_DTO dhx)
        {
            HDX_DAO.UpdateHDX(dhx);
        }

        public static void DeleteHDX(HDX_DTO hdx)
        {
            HDX_DAO.DeleteHDX(hdx);
        }
    }
}
